package cn.com.cifi.mars.web.action.sys;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.com.cifi.mars.bean.vo.sys.rsp.DictionaryTypeVo;
import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.common.constants.VersionConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(tags = {"系统管理"})
@RequestMapping("/${spring.data.rest.base-path}/{apiVersion}/sys/dictionaryType")
public interface IDictionaryTypeController {

	 @ApiOperation(value = "分页查询字典类型", notes = "分页查询字典类型")
	 @GetMapping(value = "")
	 public R<DictionaryTypeVo> getDictionaryTypePage(
	            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
	            @ApiParam(value = "当前第几页", required = true, defaultValue = "1") @RequestParam(value = "current") String current,
	            @ApiParam(value = "每页条数", required = true, defaultValue = "2") @RequestParam(value = "pageSize") String pageSize,
	            @ApiParam(value = "字典类型名称", required = false) @RequestParam(value = "typeName" ,defaultValue = "") String typeName );
	 	 

	 @ApiOperation(value = "字典类型下拉框", notes = "字典类型下拉框")
	 @GetMapping(value = "list")
	 public R<String> getDictionaryTypeList(
	            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion);
	 	 
}
